import request from "@/api/request";
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";

/**
 * /contract/{id}
 */
export function getContractById(params: GetContractByIdParams, config?: AxiosRequestConfig) {
    return request.get<DeepRequired<any>>(`/contract/${params.id}`, config);
}

export interface GetContractByIdParams {
    id: number;
}
